package com.log4j.hello;


import org.apache.log4j.Level;
import org.apache.log4j.Logger;

/**
 * @author innocent
 * @date 2018/12/10 15:32
 */
public class HelloLog4j {

    /**
     * 获取Logger对象
     *
     */
    static Logger log = Logger.getLogger(HelloLog4j.class.getName());

    public static void main(String[] args) {
        log.setLevel(Level.WARN);
        log.debug("this is a debug  message...");
        log.info("this is a info message...");
        log.warn("warm");
        log.fatal("fatal");
        log.trace("trace");
        log.error("error");

    }
}
